package spring.JdbcDemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public void select() throws Exception {

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("aspect.xml");
        userDao.selectUserById();
    }
}
